using UnityEngine.UI;

namespace Utils.MaterialProperty
{
    public interface IConstantBufferProcessor
    {
        /// <summary>
        /// 材质里的初始值
        /// </summary>
        /// <param name="buffer"></param>
        void InInitialize(Graphic graphic,string propertyName);
        void SetContent();
    }
    public enum VectorType
    {
        None     = 0,
        Vector2  = 1 << 0,        // 0001
        Vector3  = (1 << 1) | Vector2, // 0010 + 0001 = 0011
        Vector4  = (1 << 2) | Vector3, // 0100 + 0011 = 0111
        Color    = 1 << 3,        // 1000
        RectSize = 1 << 4,        // 10000
    }
}

